<?php
# we define the rights available for file

foreach ($plugin as $pluginItem) {
    include_once(create_path("plugin/".$pluginItem['idurl']."/lg_".$pluginItem['idurl']."_".LANG.".php"));

    $right[''.$pluginItem['idurl'].'']=array(
        array('id'=>'add_'.$pluginItem['idurl'].'','name'=>$lang[''.$pluginItem['idurl'].'']['add_right'],'default'=>0),
        array('id'=>'edit_'.$pluginItem['idurl'].'','name'=>$lang[''.$pluginItem['idurl'].'']['edit_right'],'default'=>0),
        array('id'=>'delete_'.$pluginItem['idurl'].'','name'=>$lang[''.$pluginItem['idurl'].'']['delete_right'],'default'=>0),
        array('id'=>''.$pluginItem['idurl'].'_list','name'=>$lang[''.$pluginItem['idurl'].'']['view_list_right'],'default'=>1)
    );
}

?>